package com.qidian.permission.mapper;

import com.qidian.permission.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 32郗建狄
 * @Company GX631
 * Time 2023/10/18 20:56
 * Description
 */
public interface PermissionMapper {
    List<Permission> selectByParentId(Long parentId);
    List<Permission> queryByUserId(Long userId);
    int deleteRelationByUserId(Long userId);
    int insertUserPermissionRelation(@Param("userId") Long userId, @Param("permissionIds") Long[] permissionIds);
}
